package com.ssyt.hiring.company.entity;

import java.util.Date;

/**
 * ApplicationEntity 职位申请
 * 
 * @author Administrator
 *
 */
public class ApplicationEntity {

	private int id;
	private int position$id;
	private int talent$id;
	private int resume$id;
	private int status;
	private Date appTime;
	private Date handleTime;

	// 扩展属性
	private String resume$intention;
	private String position$name;
	private String company$name;
	private String talent$name;

	// 临时传参
	private int company$id;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getAppTime() {
		return appTime;
	}

	public void setAppTime(Date appTime) {
		this.appTime = appTime;
	}

	public Date getHandleTime() {
		return handleTime;
	}

	public void setHandleTime(Date handleTime) {
		this.handleTime = handleTime;
	}

	public int getPosition$id() {
		return position$id;
	}

	public void setPosition$id(int position$id) {
		this.position$id = position$id;
	}

	public int getTalent$id() {
		return talent$id;
	}

	public void setTalent$id(int talent$id) {
		this.talent$id = talent$id;
	}

	public int getResume$id() {
		return resume$id;
	}

	public void setResume$id(int resume$id) {
		this.resume$id = resume$id;
	}

	public String getResume$intention() {
		return resume$intention;
	}

	public void setResume$intention(String resume$intention) {
		this.resume$intention = resume$intention;
	}

	public String getPosition$name() {
		return position$name;
	}

	public void setPosition$name(String position$name) {
		this.position$name = position$name;
	}

	public String getCompany$name() {
		return company$name;
	}

	public void setCompany$name(String company$name) {
		this.company$name = company$name;
	}

	public String getTalent$name() {
		return talent$name;
	}

	public void setTalent$name(String talent$name) {
		this.talent$name = talent$name;
	}

	public int getCompany$id() {
		return company$id;
	}

	public void setCompany$id(int company$id) {
		this.company$id = company$id;
	}

	public String getStatusStr() {
		if (status == 1) {
			return "待审核";
		} else if (status == 2) {
			return "审核通过";
		} else if (status == 3) {
			return "已拒绝";
		} else {
			return "Unknow";
		}
	}
}
